<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    var_dump($_SERVER['PATH_INFO']);
}
?>